#!/usr/bin/python
# lineUp
#	this lines up your code statements, it's fairly
#	dumb, it doesn't care about what column is the 
#	equal sign and so on.  it chugs thru all lines
#	and prints the lines with each 'column' padded
#	such that it's all ligned up.
#
# multiply is a simple templating mechanism for 'multiplying' code.
# 
# Copyright (C) 2002 Demian L. Neidetcher
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

import string
import sys

class lineUp:

	def lineUpAll(this, linesIn):
		# set up the buffer list
		colBuffers = []
		for pos in xrange(0, 20):
			colBuffers.append(0)

		# get the max size of all the buffers
		for line in linesIn:
			colPos = 0
			for col in string.split(line):
				currLen = len(col)
				if (currLen > colBuffers[colPos]):
					colBuffers[colPos] = currLen
				colPos = colPos + 1

		# prepare the output lines with the padding
		linesOut = []
		for line in linesIn:
			strOut = ''
			colPos = 0
			for col in string.split(line):
				strOut = strOut + string.ljust(col, colBuffers[colPos] + 1)
				colPos = colPos + 1
			linesOut.append(strOut)

		return linesOut

if __name__=='__main__':
	lines = []
	for inLines in sys.stdin.readlines():
		lines.append(inLines)

	l = lineUp()
	for line in l.lineUpAll(lines):
		print line
